import requset from '@/utils/request'
//登录请求
export const login:UserLogin =(data) => requset({
  url:'/sys/login',
  method:'post',
  data,
})

//获取用户资料
export const getProfile=() => {
  return requset ({
    url:'/sys/profile',
    method :'post',
  })
}
//获取id用户资料
export const getProfileById=(id:string) => {
  return requset ({
    url:`/sys/user/${ id }`,
  })
}
